<?php

namespace app\api\model\intelligentlive;

use app\api\model\BaseModel;

class Order extends BaseModel
{
    protected $table = 'intelligentlive_order';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

    public function orderAccount()
    {
        return $this->belongsTo(Account::class,"buyin_id","app_id")->field('app_id,director');
    }
}
